package com.woniuxy.sales.model.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * @TableName 订单详情表
 */
@TableName(value ="order_details")
@Data
public class OrderDetails implements Serializable {
    @TableId
    private Integer detailId;  //订单详情表id
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long orderId;  //订单id

    private Integer productId;  //商品id

    private Integer quantity;  //数量

    private Double price;  //价格

    private Double sumPrice;  //总价

    private Integer deleted;  //是否删除

    private static final long serialVersionUID = 1L;
}